import { createApp } from "vue";
import App from "./App.vue";

import Router from "./router/router";
import Vant from "vant";
import "vant/lib/index.css";
import "lib-flexible";
import icons from "./icons";
import request from "./utils/http";
//解决chroom 警告
import "default-passive-events";
import "./mock/mock";
import store from "./store/index";




const app = createApp(App);

app
  .use(Vant)
  .use(Router)
  .mount("#app");
app.use(icons);
app.use(request);
app.use(store);

//注册全局自定义指令v-focus
app.directive('focus',{
  mounted(el){
    el.focus()
  }
})
